package com.shixun.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class AccountDto {
    @NotBlank(message = "请输入原密码")
    private String oldPassword;
    @Size(message = "新密码长度必须在8-16位",max = 16,min = 8)
    @NotBlank(message = "请输入新密码")
    private String newPassword;
    @NotBlank(message = "请再次输入新密码")
    private String newPassword2;
}
